<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace app\game\controller;

use think\Controller;
use think\Db;
/**
 * Description of DataCenterController
 *
 * @author Administrator
 */
class DataCenterController extends Controller{
    public function getData(){
        $id = $this->request->param('id');
        $data = Db::name('data_center')->field('key_m,name_m,value_m,type_n')->find($id);
        $this->result($data, empty($data)?1:0,'','json');
    }
}
